Moved card layout strategy to separate class