factories: fix to make removeAttrs work like it used to
temp work