Refactored phenotype. Pulled tables into their own templates to be reused.