If the ePUB is intended to be read only in iBooks, on the iPad, you can use CSS to target all of these duplicated classes in one shot, like this:
Code:
p[class^="bluebox_head"] {
/* your styles */
}
This does not work on eReaders that use Abobe RMSDK. Other than that, GREP is your best friend.