Remove deprecated methods from internal deploy hook code