Refine and remove some code of ReflectCore module