Refactor guest user controller.