Refactoring capistrano 3 tasks