Reducing LOC around use of Optional using Java 8