now rake stats is both - engine friendly and backwards compatible

While changes in #15299 were clear, 3rd party tools are dependent on current global constant, according to #15308

This solution will produce warnings in context of rails engine

Consider merging this/reverting #15299/providing your solution