[ATM][Modes] Remove redundant methods and variables, rename listmode to mainmode.