function headers for traits api
convert favorite to trait
refactor reason->rtype to type
reason_as_trait ready for test
add style rules, completed reason as trait