Extracted InputResolver, smaller files for better organisation, readability and better compiling options.