Move internal Django structure walking into separate generators.