Make DirectoryModel an interface.