Moved mirroring decorators and utils to lib/mirroring.py