Thru-axle motor