not essential but could do: 
`if set(test_bases).intersection(deferred_types):`
 - just has fewer `set`s...