Move title preprocess from template