Remove deprecated function call