HeadOption and lastOption are redundant on the instance of Option.

Before:

option.lastOption
seq.find(p).headOption

After:
option
seq.find(p)