Refactor to incorporate RSpec let syntax