Refactor to add a class for terms period.