Minor code cleanup in Pool and related classes.