Refactor duplicate method bodies into shared private method