Add support for writing beforeEach out at root describe and regular describes
Refactor and rework to work properly for globals and beforeEach