Remove cruft and namespace resources.