Removed useless code from ApiModule.