This part feels more like duplication of "code" rather then setting one constant and computing the CSS programmatically.