Upgrading to rails4 including several refactorings