Refactoring integration test support.