The 49ers took a big step toward keeping their powerful defense together on Tuesday when they made their first big move to retain key veterans from their NFC West championship team by signing Ahmad Brooks to a six-year contract extension.