LPS-52174 Run format-source

I think the code is fine, although I also think this needs a significant refactoring. Maybe it should be done as part of the modularization effort?