refactor code to avoid double checking of cassette builders while generating all cassettes