Removes entity Security class and all dependences