Cleans up imports and unused methods.