This is like taking your MySQL app and running it against MongoDB with a bunch of hacks to translate the SQL into mongo calls.
And then claiming you did all this so you could "avoid a rewrite".
Some architectural decisions are far reaching and leaky. This is not the ideal but it often is the ideal trade off. The alternative is decoupling to the nth degree resulting in a hunk of junk impossible to change that won't get off the ground.