Refactor get replies