Reduce simple class resolver to the requred minimum