Created HandlerInterface and applied Strategy pattern.