Refactor 'decode ways'.