Refactor installation tasks into Rake