Refactor NewCtx so that it receives the options struct

see
https://github.com/peco/peco/commit/9660496d99d37184997ccf75e1be831b7d1c70f5#commitcomment-6857198