Moved connection configuration out of ApnsConnection (which didn't need it).