Start with torque and RPM requirements which will define gearbox requirements then size motor appropriately.