Dynamically create diffstat methods