Refatorando helper de toggle_field