This is code duplication - can you move this method into `ApplicationController`?