This is now identical to the method in `Api::TaskListsController`. Move it to `Api::BaseController`.