Refactor windowUrlFromMetadata to separate class
windowUrlFromMetadata()
is a single function of nearly 300 lines,
with several lambdas and no unit tests, as well as at least one
bug buried somewhere inside.
This change will refactor the function into a new class that can then have the logical blocks and lambdas refactored into contained methods with unit tests to verify the behaviours.
Edited by Kristen McWilliam