Prepare to Angular 1.0 migration