Move fragment classes into corresponding packages.