It has to be hardcoded somewhere, either in the LESS (as it was done for the icons) or in the view.  Both work, I think it's just a matter of what is more appropriate.  They should be in the same place one way or the other though.