refactor formatters where from_type is useless and can be obtained from the value itself