extract moto type to separate class