Cleanup of compiler code for `alias/3` directives