Remove deprecated write method