Refactor #current_syntax_type in Should and OnelinerShould
Refactor handling of attributes in RecordBuilder