THERAVANCE, INC. and The Bank of New York, as Rights Agent AMENDED AND RESTATED RIGHTS AGREEMENT Dated as of June 22, 2007