Moved parsing functionality to RequestParser class.