[PATCHv2 0/4] netlink: Extract common code to simplify netlink functions