Top official leaving consumer protection bureau