Terraforming legacy Rails applications

Refactoring