...to line 1053, have a lot of replicated list comprehensions that are basically the same. decompose/refactor