Adds StatementFactory dependency.