Attributes starting with an underscore are filtered out also. Renamed to purgeUnneeded to reflect new function.