Refactor settings specs