Resolves a scope issue to prevent release code running early during test run