Refactor reading of properties from pipes