Modularize hydra config