Refactor to get rid of repeating