Move aliases function definition

...just before its call.