Removing redundent Heroku code