Adjust entity view field detection to work properly with relations.