remove duplication from MaglLegacyApplication Class
remove unused use statement