Extract helper methods