Refactor RoutableActions to allow additional not_found checks See merge request gitlab-org/gitlab-ce!28243