Undo monkey-patching at the end of the request

Otherwise new constructor layers would be injected
with each request ultimately leading to a recursion
error/stack overflow.