Refactor get request