Tiny refactorings

While scanning the code I found some possible improvements.

WDYT?
:+1: