Refactor dependency injection for angular routes