Replace deprecated form methods.