Use conditional compilation for backwards support instead of just using deprecated methods everywhere.