Remove old API code blocks