Refactor lsmb-request.pl for better overview.