Refactor multiple request running to a resource class