Refactor medication classification section.