Remove modes from the compiler

r? @brson