You lost me at the lack of added fat, a critical component for refried beans. Yes, there’s a little butter called for with the onion, but not nearly enough fat (ie, none) added to the beans.
Call me a pedantic purist gatekeeper who grew up eating these almost daily, but you posted mashed beans, not refried beans.