Moved InputContext to the core module.