Use eval blocks instead of multiple define_method calls