Remove unneeded variable extern