Refactor code.
Add world input processor class.