Remove global variable reference