simplify and use get_assets_from_list from core
move constants out of function