Replace the public usage of c2s with a function

Doing so adds clarity and improves the quality of client code.