Factor out property extraction and querying the entire table