small refactor
Merge pull request #1811 from takkaw/refactor_mirb

small refactor in mirb