refactoring in the ActiveSpy::Rails::Base