Removed references to api when disabled.