Avoid unneeded lists:reverse/1