modularize `composed_data` and `none_values_found`

Create four specialized functions to do this (in `retrieve.py`).