Refactoring prior module system to make different priors better able to control their own parameters.