Modularized the code base to have hypothesis-specific code in its own file.