Added hook_populate_pseudo_entity() to replace hook_replace_entity()