tbh this would benefit greatly from just extractin...
# codereview
u
tbh this would benefit greatly from just extracting stuff into private methods, e.g
Copy code
override fun getDomainNames(): List<DomainName> {
        return accounts
                .map(Account::clientForAccount())
                .flatMap(Client::getRecordSets())
                .filter { it.type == "A" || it.type == "CNAME" }
                .map(::DomainName)
    }