refactor: Use intermediate variable to make things clearer