Simplify implementation of prelude-smart-open-line-above

As suggested by bbatsov.