Moved type-of-file to utils namespace.