Replaced file_type_* API functions with entity operations.