Cleanup, rearrange
Rewrite extends/implements parsing logic
Dedent
Split out prefix & additional_text building
Fully test build_prefix & build_additional_text
Cleanup build_additional_text