refactored extension mechanism for clld pyramid apps