Cleans some things up, removing unused aliases, etc.