Minor variable renaming
Minor formatting
Refactored get_preparatory_term()