Refactoring the <label><input> prints