Refactor order process frontoffice code to reuse parts of it in return process.
Clean up and code formatting.