Move some code from Fm::DirTreeModel to Fm::DirTreeModelItem.