Split up the portal routes file and refactor controller classes.