Removes unnecessary method invocations in the OTR plugin.