Refactor search_beam_position
Refactor search_beam_position

* extract two internal static functions from class
* turn remaining pseudo-class into a function

dials/dials,dials/dials,dials/dials,dials/dials,dials/dials