[#27783] Convert theme functions into reusable preprocess function.