Remove useless import and global variable