Remove $global dependency