Refactoring of capistrano deployment