Removing superfluous api variable reference