EZP-22564: refactored: extract method