Rewrites mapping layer