Refactor routes to simplify buildpack uploads