I was thinking if it would make sense to have a method like this in the entity itself. It could be nice to have a way to extract deep properties.