Cleaned up `require` code.