Rework requires to expose no global values; support namespaced elements