Registering type factories