Refactors cache removal to own method

Some of our app logic unit tests, rely on the ability to reset the cache for individual objects in order to properly test serialization/deserialization, deletion rules, etc.. 

We have a +test header file that exposes the `removeFromCache` method. 

This commit changes nothing in the logic of the framework, it does simply move the cache removal to its own method.