Refactor this function and pass these options in a more readable structure _Originally posted by @ct2034 in https://github.com/boschresearch/ros_license_toolkit/pull/72#discussion_r1916337556_