Use Spring beans instead of constructing objects