I agree with you that createOrder is a better place for that.