make list_partial helper more DRY