LPS-36376 Refactor SourceFormatter - initial commit