Moves value extraction to a helper method to facilitate reuse with help-block