profcollectd: Refactor for better code clarity

NFCI.

Test: presubmit
Change-Id: Iec62d8118cd5508626c0f1021ce8d20195d8f061
2 files changed