remove unused keywords from my hierarchy