Moved order creation logic into the separate package