Remove deprecated function