[PATCH v2 2/3] selftests: cgroup: Minor code reorganizations