I'm working on a PR right now that essentially makes `targets` a read-only attribute of contexts, so the logic to handle a `targets` argument won't be necessary here.