Ensuring unused aliases are removed altogether with their linebreaks