Refactor to shorten require statements.