Prune deprecated attribute from module attributes.