stream-manager/hal-manager: revise codes for readability and rename functions

No match.