Adapting Institutions