These are really old bloated parts of the original legality checking logic; separating for now to rewrite.