Use new static methods instead of separate functions.