Tidy an API documentation
Replace similar expressions with roles (traits)