Clean up and document API helper classes.