Less repition in templates