Refactor block into single line