removing ApplicationContextFactory