Moved rewrite rule logic into the base loader class
Moved the rewrite_rules_array filter outside the admin check