Rename filterVisibleFields to addVisibleFields.