LPS-48280 Extract tree code into modules
LPS-48280 SF
LPS-48280 - Source formatting