Refactor padrino project generator.