Hacky rewrite plugin for Bazaar