[patch] Pull out aliased command to outside of the function.