Fix #15: Deprecate legacy functions and constants.