Refactored function "prepare_reactions".

I also added a helper function for retrieving a reaction
based on its name.