remove compilation of obsolete Factory class