Applied feedback: Move common logic in a static helper method