Extend with methods to allow logic to remove unused global elements and
types