Removed copy-pasted functions from EntityHelperTrait.