sysctl: Refactor the binary sysctl handling to remove duplicate code