This could be optimized a bit by removing all actions starting at index EntryAttributes::DefaultAttributes.size() instead of excluding the default actions from actionsToRemove :)