Law firm Shakespeare Martineau has been appointed to the legal services framework of Midland Heart, one of the region's largest housing associations.