Use RSpec 'let' function to reduce redundancy