Could you please refactor this to use case?