Split up scriptHandler.findScript (#13989)
Summary of the issue:
scriptHandler.findScript is considered too complex.
Therefore it should be broken up into smaller functions.
Description of user facing changes
None
Description of development approach
Added typing to related objects.
Split up scriptHandler.findScript so it is more modular.