Simplifying the redirect controller, extracting url formatting to its own class